package com.lhm.service;

import com.lhm.dao.UserDao;
import com.lhm.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl  implements UserService{

    @Autowired
    UserDao userDao;

    @Autowired
    PasswordEncoder passwordEncoder;


    @Override
    public void add(User u) {
        userDao.add(u);
    }


    @Override
    public User findUserName(String username) {
        return userDao.findUserName(username);
    }
}
